package com.xja.springbootdemo.controller;
import com.xja.springbootdemo.query.CangkuQueryInfo;
import com.xja.springbootdemo.service.CangkuService;
import com.xja.springbootdemo.util.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller("/cangku")
public class IndexController {
    @Autowired
    private CangkuService mcangkuService;

    @RequestMapping("/queryPage")
    public PageUtil PageCount(String cangkumc){
        PageUtil page = new PageUtil();
        CangkuQueryInfo cangkuQueryInfo = new CangkuQueryInfo();
        cangkuQueryInfo.setCangkumc(cangkumc);
        mcangkuService.queryPage(cangkuQueryInfo);
        return page;
    }
}

